extends "../calxgx_2_2/calxgx_2_2.gd"
func _init():
	pass
func _extInit():
	._extInit()
	chaName = "圣天伊"      
	lv = 4
	addSkillTxt("[color=#FFFF00][无限龙魂][/color]:[color=#FFCC22]汇聚光龙之力攻击目标单体，造成200%光系物理伤害，提升自身物攻和冷却各10%，最高至60%\n恢复伤害值的30%体力[CD:17][/color]")
	addCdSkill("wxlh",17)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "wxlh":
		var eff = sys.newEff("numHit", position, false, 1)
		eff.setText("无限龙魂", "#FF0099")
		eff.anim.set_speed_scale(0.2)
		typeHurtCha(aiCha,att.atk*2,Chara.HurtType.PHY,Chara.AtkType.SKILL)
		plusHp(atkInfo.hurtVal*0.3)
		var buff = hasBuff("wugong1")
		var buff1 = hasBuff("lengque1")
		if buff == null:
			addBuff(bf.wugong1.new())
		elif buff.att.atkL < 0.6:
			buff.att.atkL += 0.1
		if buff1 == null:
			addBuff(bf.lengque1.new())
		elif buff1.att.cd < 6:
			buff1.att.cd += 0.1